      SUBROUTINE SETUP
      RETURN
      END
C   HS19
      SUBROUTINE EF(X,FX)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION FX,X(NX)
      ICF=ICF+1
      FX=(X(1)-1.D1)**3+(X(2)-20.D0)**3
      RETURN
      END
      SUBROUTINE EGRADF(X,GRADF)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),GRADF(NX)
      ICGF=ICGF+1
      GRADF(1)= 3.D0*(X(1)-10.D0)**2
      GRADF(2)= 3.D0*(X(2)-20.D0)**2
      RETURN
      END
      SUBROUTINE EH(I,X,HXI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX),HXI
      CRES(I)=CRES(I)+1
      RETURN
      END
      SUBROUTINE EGRADH(I,X,GRADHI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX),GRADHI(NX)
      CGRES(I)=CGRES(I)+1
      RETURN
      END
      SUBROUTINE EG(I,X,GXI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX),GXI
      IF ( GUNIT(1,I+NH) .EQ. -1 )CRES(I+NH)=CRES(I+NH)+1      
      GOTO(100,200,300,400,500,600),I
  100 CONTINUE
      GXI=(X(1)-5.D0)**2+(X(2)-5.D0)**2-100.D0
      RETURN
  200 CONTINUE
      GXI=-(X(2)-5.D0)**2-(X(1)-6.D0)**2+82.81D0
      RETURN
  300 CONTINUE
      GXI=  X(1)-13.D0
      RETURN
  400 CONTINUE
      GXI=  X(2)
      RETURN
  500 CONTINUE
      GXI= 100.D0-X(1)
      RETURN
  600 CONTINUE
      GXI= 100.D0-X(2)
      RETURN
      END
      SUBROUTINE EGRADG(I,X,GRADGI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX) ,GRADGI(NX)
      IF ( GUNIT(1,I+NH) .EQ. 1 )RETURN
      CGRES(I+NH)=CGRES(I+NH)+1
      GOTO(100,200,300,400,500,600),I
 100  CONTINUE
      GRADGI(1)=2.D0*(X(1)-5.D0)
      GRADGI(2)=2.D0*(X(2)-5.D0)
      RETURN
 200  CONTINUE
      GRADGI(1)=-2.D0*(X(1)-6.D0)
      GRADGI(2)=-2.D0*(X(2)-5.D0)
      RETURN
 300  CONTINUE
      GRADGI(1)=1.D0
      GRADGI(2)=0.D0
      RETURN
 400  CONTINUE
      GRADGI(1)=0.D0
      GRADGI(2)=1.D0
      RETURN
 500  CONTINUE
      GRADGI(1)=-1.D0
      GRADGI(2)= 0.D0
      RETURN
 600  CONTINUE
      GRADGI(1)=0.D0
      GRADGI(2)=-1.D0
      RETURN
      END
      BLOCK DATA
      INCLUDE 'BLOCO.INC'
      INTEGER I,J
      DATA NAME/'HS19'/
      DATA X(1),X(2)/ 20.1D0,5.84D0/
      DATA N/2/ , NH/0/ , NG/ 6/
      DATA DEL0/1.00D0/ ,TAU0/1.D0/ ,TAU/.1D0/
      DATA ((GUNIT(I,J),I=1,3),J=0,6)/-1,0,0,-1,0,0,-1,0,0,1,1,1,1,2,1,
     F      1,1,-1, 1,2,-1/
      END

